#!/bin/sh

# Startup script for munin-node

function munin_start {
	/usr/sbin/munin-node
}

function munin_stop {
	killall munin-node
}

if [ "$1" == 'start' ]; then
	munin_start
elif [ "$1" == 'stop' ]; then
	munin_stop
elif [ "$1" == 'restart' ]; then
	munin_stop
	munin_start
else
	echo "usage: rc.munin-node start|stop|restart"
fi
